const {  query} = require('./db');
var arr = [
  {'id':"1"},
  {'id':"2"},
]
arr.map((item,index)=>{
  let sql = `insert into ones values (${parseInt(item.id)})`
  // let sql = `select * from ones where id = ${parseInt(index)}`
  query(sql,(err,data)=>{
    if(err) throw err;
    console.log(data);
  })
})